<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>Document</title>
<link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
<link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<link rel="stylesheet" href="../assets/app/css/app.css" />
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<style>body{background:#f5f5f5;}ul.listitem{background:#fff;}.listitem li{margin:5px auto 0px auto;}</style>
</head>
<body>
<!--通用顶部-->
<div id="ios-top-box">
    <div id="header" class="bar bar-nav">
    <div class="titlebar">
    <a href="javascript:appClose('myfans',api);"><i class="iconfont iconline-arrow-left"></i></a>
    <h1 class="title">我的粉丝(<font>0</font>)</h1>
    </div>
    </div>
</div>
<!--通用顶部结束-->
<section>
<div class="scroller create_goods">
<p style="text-align:center;padding:10px 0;display:none;">暂无粉丝</p>
</div>
</section>
</body>
<script type="text/javascript">
apiready = function(){
	if(getUserinfo()){
		api.showProgress({title:'加载中',text:''});
		var userinfo = getUserinfo();
		GetJPData(config.url+'/app.php?act=myfans&uid='+userinfo.uid,{},function(data){
			api.hideProgress();
			if(data['status'] == 1){
				if(data['data'].length > 0){
					var html = '';
					for(var i in data['data']){
						html += '<ul class="listitem group_listitem"><li>';
						html += '<img uid="'+data['data'][i]['uid']+'" data-original="'+config.upload_url+'/'+data['data'][i]['img']+'" width="70" height="70" class="img lazy"/>';
						html += '<div class="text" style="line-height:25px;">';
						html += '<p><span style="color:#0577ab;">'+data['data'][i]['username']+'</span><span style="float:right;">已参与'+data['data'][i]['buy_count']+'次</span></p>';
						html += '<p>注册时间：'+data['data'][i]['time']+'</p>';
						var qianming = '';
						if(data['data'][i]['qianming']){
							qianming = data['data'][i]['qianming']
						}
						//html += '<p class="qm">签名：'+qianming+'</p>';
						html += '</div></li></ul>';
					}
					$('h1.title font').text(data['count']);
					$('.scroller').html(html);
					lyzimg();
					
						$('img').bind('click',function(){
						var userid = $(this).attr('uid');
						localData.set('userid',userid);
						randomSwitchBtn('userindex',api);
					});
					
				}else{
					$('.scroller p').show();
				}
			}else{
				$('.scroller p').show();
				api.alert({msg:data['msg']});
			}
		});
	}else{
		$.PageDialog.fail('请登录用户');
	}
}
</script>
</html>